// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.network;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import zombie.core.raknet.UdpConnection;
import zombie.debug.DebugLog;

public class ConnectionManager {
    private static final SimpleDateFormat s_logSdf = new SimpleDateFormat("dd-MM-yy HH:mm:ss.SSS");

    public static void log(String event, String message, UdpConnection connection) {
        DebugLog.Network
            .println(
                "[%s] > ConnectionManager: [%s] \"%s\" connection: %s",
                s_logSdf.format(Calendar.getInstance().getTime()),
                event,
                message,
                GameClient.bClient ? GameClient.connection : connection
            );
    }
}
